<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>两栏布局，左边固定，右边自适应，左右不重叠</title>
        <style media="screen">
            html * {
                margin: 0;
                padding: 0;
            }
            /* .cont {
                width: 1000px;
                height: 900px;
                background-color: aqua;
            } */
            body {
                height: 100%;
                background-color: aqua;
            }
            .left {
                float: left;
                width: 300px;
                height: 300px;
                margin-right: 10px;
                background: red;
            }
            .right {
                height: 400px;
                /* 创建BFC  margin-right: 10px */
                overflow: hidden;
                background: yellow;
            }
        </style>
    </head>
    <body>
        <!-- <div class="cont"> -->
        <div class="left">1111</div>
        <div class="right">2222</div>
        <!-- </div> -->
    </body>
</html>
